Text File | 1998-10-24 | 507 b | 17 lines | [TEXT/ScoM]
m-sum number integer-output
The function map-sum monitors the output of a conversion function producing a list of integers. It monitors this initial integer-output against a user-defined number which represents the sum of numbers required by the composer in the final output of integers.
(setq sum
(m-sum 56
(cfunction
(gen-noise-white 100 1.0 .39) '(1 2 3 5 7))))
=> (3 1 2 3 1 5 7 5 3 2 7 7 5 5)
The function apply demonstrates how the integer-ouput is monitored.